package me.zhao.proxy;

public class CarTimeProxy implements Moveable {
	private Moveable m;
	
	public CarTimeProxy(Moveable m){
		super();
		this.m = m;
	}
	
	@Override
	public void move() {
		long starttime = System.currentTimeMillis();
		System.out.println("汽车开始行驶...");
		m.move();
		long endtime = System.currentTimeMillis();
		System.out.println("汽车结束行驶...行驶时间：" + (endtime-starttime));
		
	}

}
